package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractEntityDao;
import cnpm02.j2ee.group3.model.EmailTemplate;

@Local
public interface EmailTemplateDao extends AbstractEntityDao<EmailTemplate>{
	final String SELECT_ALL_QUERY = "select from person";
	final String SELECT_EMAIL_TEMPLATE = "from EmailTemplate et where et.code = :code and et.languageCode = :languageCode";
	/**
	 * Select specific email template base on code and language.
	 * @param code email template code
	 * @param language email template language
	 * @return {@link EmailTemplate} found email template
	 * */
	EmailTemplate getEmailTemplate(String code, String language);
}
